package Homework;
//定义三个有参数有返回值的方法，分别实现计算三角形，正方形，长方形面积
public class test25 {
    public static void main(String[] args) {
        System.out.println(getsjxAREA(2.2,2.2));
        System.out.println(getzfxAREA(2.2,2.2));
        System.out.println(getcfxAREA(2.2,2.2));
    }
    public static double getsjxAREA(double a ,double b){
        double result=a*b*0.5;
        return result;
    }
    public static double getzfxAREA(double a ,double b){
        double result=a*b;
        return result;
    }
    public static double getcfxAREA(double a ,double b){
        double result=a*b;
        return result;
    }
}
